package cn.wsalix.weixin.form;

import javax.persistence.Transient;

import lombok.Data;
import lombok.EqualsAndHashCode;
import cn.anlaser.form.CommonForm;
import cn.wsalix.weixin.util.XStreamCDataConverter;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamConverter;


@Data
@EqualsAndHashCode(callSuper = false)
public class BaseMsgForm extends CommonForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4686483380867493479L;
	@XStreamAlias("ToUserName")
	@XStreamConverter(value = XStreamCDataConverter.class)
	private String toUserName;
	@XStreamAlias("FromUserName")
	@XStreamConverter(value = XStreamCDataConverter.class)
	private String fromUserName;
	@XStreamAlias("CreateTime")
	private long createTime;
	@XStreamAlias("MsgType")
	@XStreamConverter(value = XStreamCDataConverter.class)
	private String msgType;
	
	@Transient
	@XStreamAlias("Encrypt")
	@XStreamConverter(value = XStreamCDataConverter.class)
	private String encrypt;
	
	@XStreamAlias("MsgId")
	@XStreamConverter(value = XStreamCDataConverter.class)
	private String msgId;

}
